工具说明书 |
您所在的位置:网站首页 › visual studio编程字体 › 工具说明书 |
程序员使用大量的符号,通常用几个字符表示一个编码。对于人脑来说,像->、=b)就会变成if(a≧b) 在上面的JSON设置文本中,还有很多其他选项可用: "editor.fontFamily": "'JetBrains Mono', Consolas, 'Courier New', monospace", // Font Family "editor.fontSize": 11.3, // Font Size "editor.fontWeight": "bold", // Font Weight "editor.fontLigatures": true, // Font ligatures "editor.letterSpacing": 0.4, // Set letter spacing "editor.smoothScrolling": true, // Enable smooth scrolling in the editor --------------------------------------- 使用Notepad++设置连字功能。 官方并不支持连接词, 所以先通过插件管理器安装LuaScript,安装后重启APP。 打开Plugins > LuaScript > Edit Startup Script来编辑LuaScript启动文件,并添加以下代码。 editor1.Technology = SC_TECHNOLOGY_DIRECTWRITE editor2.Technology = SC_TECHNOLOGY_DIRECTWRITE 然后进入设置项:Settings > Style Configurator > Global Styles > Global Override。 在字体选择中,改为支持连字功能的字体,比如Jetbrains Mono或者Fira Code。 然后勾选“启用全局字体”(Enable global font)。 重启Notepad++,新建文本中输入“>=” 就会变成“≥”。 ---------------------------------------- 在我们编程中,一般都建议使用等宽字体,这样代码编辑和阅读起来都比较方便。 比如courier new、monospace、JetBrains Mono和Consolas都是我们常用的等宽字体。 在编程中使用的话,字体显示的I、L、0、O这几个字母也要方便区分。 而上面介绍的连字功能,也是对于程序员来说,让代码更简洁的一个特性。 前面设置的editor.fontLigatures,就是指这个。 具有连字功能的字体包括但不限于: Fira Code 和 JetBrains Mono。 而我经常使用的(在Source Insight中)Consolas字体就是不带连字功能的。 下面是一些程序员编程常用的字体,有兴趣可以网上下载下来使用: Consolas: Consolas 是 Microsoft Visual Studio 的默认字体,随 Windows 一起提供。 Source Code Pro: Source Code Pro 由 Adobe 设计。整体而言,这种字体看起来比其他字体更清晰。 courier new JetBrains Mono: a typeface for developers. Fira Code:free monospaced font with programming ligatures. iosevka Monoid :open source coding font. Hasklig (这个是Source Code Pro的连字版本) MonoLisa : font follows function. Droid Sans Mono: an open-source sans-serif font. monospace 参考: According to JetBrains mono, firacode, source code pro and Consolas, which is your dish? | Develop Paperhttps://developpaper.com/according-to-jetbrains-mono-firacode-source-code-pro-and-consolas-which-is-your-dish/ 5 monospaced fonts with cool coding ligatures | Better Web Typehttps://betterwebtype.com/articles/2020/02/13/5-monospaced-fonts-with-cool-coding-ligatures/ 6 BEST Fonts for Programming in 2021 | Bloghttps://braydoncoyer.dev/blog/6-best-fonts-for-programming-in-2021/ https://github.com/i-tu/Hasklighttps://github.com/i-tu/Hasklig https://github.com/JetBrains/JetBrainsMono/https://github.com/JetBrains/JetBrainsMono/ Idea公司真牛逼,发行最适合程序员编程字体~|java|编辑器|编程语言|代码_网易订阅https://www.163.com/dy/article/FVNKTH380531A3HQ.html https://github.com/tonsky/FiraCodehttps://github.com/tonsky/FiraCode |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |